package com.wangzh.lang;

import java.io.IOException;

public class RuntimeDemo {
    public static void main(String[] args) throws IOException {

        Runtime runtime = Runtime.getRuntime();


        //运行cmd命令
        //一小时后关机
//        runtime.exec("shutdown -s -t 3600");

        //取消
//        runtime.exec("shutdown -a");

    }
}
